home *** CD-ROM | disk | FTP | other *** search
- /*______________________________________________________________________
-
- glob.c - Disinfectant Globals.
-
- Copyright © 1988, 1989, 1990 Northwestern University. Permission is
- granted to use this code in your own projects, provided you give credit
- to both John Norstad and Northwestern University in your about box or
- document.
-
- This module declares the global variables used by the private
- modules in Disinfectant.
- _____________________________________________________________________*/
-
-
- #pragma load "precompile"
- #include "rez.h"
- #include "glob.h"
-
- /*______________________________________________________________________
-
- Global Variables.
- _____________________________________________________________________*/
-
-
- /* The following variables are set during initialization, and never
- changed thereafter. */
-
- ControlHandle Controls[numControls]; /* main window control handles */
- Handle Report; /* handle to main window report record */
- Rect DragRect; /* drag rectangle */
- Boolean SysHasShutDown; /* true if shutdown trap exists */
- long LongSleep; /* long sleep time */
- Rect RectList[numRects]; /* rectangle list */
- CursHandle Watch; /* handle to watch cursor */
- CursHandle BBCursors[numBalls]; /* handles to beachball cursors */
- CursHandle HelpCurs; /* handle to help cursor */
- CursHandle FloppyCurs; /* handle to floppy disk cursor */
- short SysRefNum; /* system file ref num */
- short SysVol; /* system vol ref num */
- long SysDirID; /* blessed folder dir id */
- short DfectRefNum; /* Disinfectant's file ref num */
- short DfectVol; /* Disinfectant's vol ref num */
- Boolean OldRom; /* true if 64K rom */
-
- /* The following variables are changed after intialization. */
-
- PrefsType Prefs; /* preferences */
- Boolean Done = false; /* true when time to quit */
- Boolean MenuPick; /* true if command was via menu pick */
- Boolean Scanning = false; /* true while scan in progress */
- Boolean FloppyWait = false; /* true while waiting for floppy insert */
- Boolean Canceled; /* true if scan canceled */
- Boolean RepInfected = false; /* true if current report contains a
- message about an infected file */
- Boolean SysInfect = false; /* true if at least one file in the currently
- active system folder was infected on a
- disinfection run */
- Boolean HelpMode = false; /* true if help mode (shift key down */
- Boolean InForeground = true; /* true if running in foreground */
- Boolean NoMemFullAlert = false; /* true to tell grow zone proc to return 0
- on mem full instead of posting mem full
- alert */
- Boolean DisableDisinfect = false; /* true to disable Disinfect button */
- short CurScanKind; /* kind of scan */
- long NumScanned = 0; /* number of files scanned counter */
- long NumInfected = 0; /* number of files infected counter */
- long NumErrors = 0; /* number of errors counter */
- Boolean Notified = false; /* true if notification posted */
- NMRec NotifRec; /* Notification Manager record */
- Str255 NotifString; /* notification string */
- Boolean BBEnabled; /* true if spinning beachball is enabled */
- long TotFiles; /* total number of files scanned */
- long TotErrors; /* total number of errors */
- long TotInfected; /* total number of infected files */
- long TotNoAccess; /* total number of folders with
- insufficient access rights */
- unsigned long EarliestDate; /* date/time of earliest infection */
- Str255 EarliestName; /* name of earliest infected file */
- Boolean SysInfected; /* true if infected file found
- in blessed folder */
-